<!DOCTYPE html>
<html lang=ch>
<head>
    <meta charset="UTF-8">
    <title>作业详情</title>
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <link rel="stylesheet" href="../../public/sui/css/sm.css">
    <script src="../../public/sui/js/zepto.js"></script>
    <script src="../../public/js/jquery-3.3.1.min.js"></script>
    <script>
        window.$$=window.Zepto = Zepto;
    </script>
    <script src="../../public/sui/js/sm.js"></script>
    <style>
        .pm p{
            text-align: center;
        }
        #d-homeworkfile,#d-answer{
            display: none;
        }
    </style>
</head>
<body>
<div class="page-group">
    <div class="page">
        <header class="bar bar-nav">
            <a class="icon icon-left pull-left" onclick="window.history.go(-1)"></a>
            <h1 class="title">作业详情</h1>
            <a class="icon icon-menu pull-right open-panel"></a>
        </header>
        <div class="content">
            <div class="list-block">
                <ul>
                    <li class="item-content">
                        <div class="item-inner">
                            <div class="item-title">标题</div>
                            <div class="item-after" id="h-title"></div>
                        </div>
                    </li>
                    <li class="item-content">
                        <div class="item-inner">
                            <div class="item-title">描述</div>
                            <div class="item-after" id="h-notice"></div>
                        </div>
                    </li>
                    <li class="item-content">
                        <div class="item-inner">
                            <div class="item-title">章节</div>
                            <div class="item-after">
                                <span id="sec-num"></span>
                                <span id="sec-name"></span>
                            </div>
                        </div>
                    </li>
                    <li class="item-content">
                        <div class="item-inner">
                            <div class="item-title">小节</div>
                            <div class="item-after">
                                <span id="sub-num"></span>
                                <span id="sub-name"></span>
                            </div>
                        </div>
                    </li>
                    <li class="item-content">
                        <div class="item-inner">
                            <div class="item-title">到期时间</div>
                            <div class="item-after">
                                <span id="h-deadline"></span>
                            </div>
                        </div>
                    </li>
                    <li class="item-content">
                        <div class="item-inner">
                            <div class="item-title">附件</div>
                            <div class="item-after">
                                <a id="d-attach">下载<span class="icon icon-download"></span></a>
                            </div>
                        </div>
                    </li>
                    <li class="item-content">
                        <div class="item-inner">
                            <div class="item-title">答案</div>
                            <div class="item-after">
                                <a id="d-answer">下载<span class="icon icon-download"></span></a>
                            </div>
                        </div>
                    </li>
                    <form id="form_up">
                    <li class="item-content">
                        <div class="item-inner">
                            <div class="item-title label">作业</div>
                            <div class="item-input">
                                <input type="file" name="up-homeworkfile">
                            </div>
                            <div class="item-after">
                                <a download="" id="d-homeworkfile" >下载<span class="icon icon-download"></span></a>
                            </div>
                        </div>
                    </li>
                    </form>
                    <li class="item-content">
                        <div class="item-inner">
                            <div class="item-title">评分</div>
                            <div class="item-after">
                                <span id="score"></span>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>
            <div class="content-block">
                <div class="login_box">
                    <a class="button button-big button-fill" id="btn_submit">提交作业</a>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="panel panel-right panel-reveal">
    <div class="content-block pm">
        <p>菜单</p>
        <p><a class="close-panel" id="href_message">消息</a></p>
        <p><a class="close-panel" id="href_index">首页</a></p>
        <p><a class="close-panel" id="logout">注销</a></p>
        <p><a class="close-panel" id="me">个人中心</a></p>
        <p><a class="close-panel">关闭菜单</a></p>
    </div>
</div>
</body>
</html>
<script src="../js/islogin.js"></script>
<script src="../js/logout.js"></script>
<script src="../js/homework_detail.js"></script>
<script>
    $$.init();
    $$('#datetime-picker').datetimePicker({});
</script>